﻿@{
    ViewBag.Title = "Canceled";
    Layout = "~/Views/Shared/_Layout_zone.cshtml";
}

<div class="contentcontainer">
    <div class="headings altheading">
        <h2>文档列表</h2>
    </div>
    <div class="contentbox">
        <table width="100%">
            <thead>
                <tr>
                    <th>名称</th>
                    <th>发布者</th>
                    <th>发布时间</th>
                    <th>属性</th>
                    <th>状态</th>
                    <th>价值</th>
                    <th>下载</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in (IEnumerable<KnowledgeCommunity.Model.Document>)ViewData["Doc"])
                {
                <tr class="alt">
                    <td>
                        @item.Title
                    </td>
                    <td>
                        @item.Contributor
                    </td>
                    <td>
                        @item.AddTime
                    </td>
                    <td>
                        @Enum.GetName(typeof(KnowledgeCommunity.Service.Enum.IsPublic),item.IsPublic)
                    </td>
                    <td>
                        @Enum.GetName(typeof(KnowledgeCommunity.Service.Enum.State),item.State)
                    </td>
                    <td>
                        @item.Value
                    </td>
                    <td>
                        <a href="@Url.Content(item.LoadUrl)">下载文档</a>
                    </td>
                </tr>
                }
            </tbody>
        </table>
        <div style="clear: both;"></div>
    </div>     
</div>

<div class="contentcontainer">
    <div class="headings altheading">
        <h2>知识列表</h2>
    </div>
    <div class="contentbox">
        <table width="100%">
            <thead>
                <tr>
                    <th>名称</th>
                    <th>发布者</th>
                    <th>知识类型</th>
                    <th>发布时间</th>
                    <th>状态</th>
                    <th>关注次数</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in (IEnumerable<KnowledgeCommunity.Model.Knowledge>)ViewData["Kno"]) 
                {
                <tr class="alt">
                    <td>
                        @item.Title
                    </td>
                    <td>
                        @item.UserName
                    </td>
                    <td>
                        @Enum.GetName(typeof(KnowledgeCommunity.Service.Enum.KFirstSort),item.FirstSort)
                    </td>
                    <td>
                        @item.AddTime
                    </td>
                    <td>
                        @Enum.GetName(typeof(KnowledgeCommunity.Service.Enum.State),item.State)
                    </td>
                    <td>
                        @item.ClickNum
                    </td>
                </tr>
                }
            </tbody>
        </table>
        <div style="clear: both;"></div>
    </div>     
</div>

<div class="contentcontainer">
    <div class="headings altheading">
        <h2>商品列表</h2>
    </div>
    <div class="contentbox">
        <table width="100%">
            <thead>
                <tr>
                    <th>名称</th>
                    <th>发布者</th>
                    <th>发布时间</th>
                    <th>类别</th>
                    <th>状态</th>
                    <th>价格</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in (IEnumerable<KnowledgeCommunity.Model.Commodity>)ViewData["Com"]) 
                {
                <tr class="alt">
                    <td>
                        @item.Title
                    </td>
                    <td>
                        @item.UserName
                    </td>
                    <td>
                        @item.AddTime
                    </td>
                    <td>
                        @Enum.GetName(typeof(KnowledgeCommunity.Service.Enum.GoodType),item.Sort)
                    </td>
                    <td>
                        @Enum.GetName(typeof(KnowledgeCommunity.Service.Enum.State),item.State)
                    </td>
                    <td>
                        @item.CurrentPrice
                    </td>
                </tr>
                }
            </tbody>
        </table>
        <div style="clear: both;"></div>
    </div>     
</div>

<div class="contentcontainer">
    <div class="headings altheading">
        <h2>论坛列表</h2>
    </div>
    <div class="contentbox">
        <table width="100%">
            <thead>
                <tr>
                    <th>名称</th>
                    <th>发布者</th>
                    <th>状态</th>
                    <th>发布时间</th>
                    <th>热议数</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in (IEnumerable<KnowledgeCommunity.Model.Tribune>)ViewData["Tri"]) 
                {
                <tr class="alt">
                    <td>
                        @item.Title
                    </td>
                    <td>
                        @item.Sponsor
                    </td>
                    <td>
                        @Enum.GetName(typeof(KnowledgeCommunity.Service.Enum.State),item.State)
                    </td>
                    <td>
                        @item.AddTime
                    </td>
                    <td>
                        @item.TopicNumber
                    </td>
                </tr>
                }
            </tbody>
        </table>
        <div style="clear: both;"></div>
    </div>     
</div>
